package com.xiaofeng.subject.application.controller;

import com.xiaofeng.subject.common.entity.PageResult;
import com.xiaofeng.subject.infra.basic.entity.SubjectInfoEs;
import com.xiaofeng.subject.infra.basic.service.SubjectEsService;
import com.xiaofeng.subject.infra.entity.UserInfo;
import com.xiaofeng.subject.infra.rpc.UserRpc;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.security.auth.Subject;

/**
 * @Author: chc
 * @Date: 2024/03/01/15:27
 * @Description:
 */
@RestController
@RequestMapping("/subject/feign")
@Slf4j
public class TestFeignController {

    @Resource
    private UserRpc userRpc;

    @Resource
    private SubjectEsService subjectEsService;

    @GetMapping("/testFeign")
    public void testFeign(){
        UserInfo userInfo = userRpc.getUserInfo("jichi");
        log.info("TestFeignController.testFeign:{}",userInfo);
    }
}
